﻿using UnityEngine;
using System.Collections;

public class DestroyAfterTime : MonoBehaviour {

	public float timer;
	public float timeCap;

	void Update () 
	{
	
		timer += 1f;
		if(timer >= timeCap)
		{
			Destroy(gameObject);
		}
	
	}
}
